From: Eric S. Raymond Date: Tue, 27 Apr 1993 21:59:46 +0000 (+0000) Subject: (gud-format-command): Fix %f expansuuin to send ondly the basename of X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~96466 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=f03e319c88b4f7f23ec80d7c50369fc6c804d641;p=emacs.git (gud-format-command): Fix %f expansuuin to send ondly the basename of files to gdb. --- diff --git a/lisp/gud.el b/lisp/gud.el index c879e67ec1d..4729624904b 100644 --- a/lisp/gud.el +++ b/lisp/gud.el @@ -582,9 +582,9 @@ Obeying it means displaying in another window the specified file and line." (progn (setq str (concat (substring str (match-beginning 1) (match-end 1)) - (if insource - (buffer-file-name) - (car gud-last-frame)) + (file-name-nondirectory (if insource + (buffer-file-name) + (car gud-last-frame))) (substring str (match-beginning 2) (match-end 2)))))) (if (string-match "\\(.*\\)%l\\(.*\\)" str) (progn